package cqut.gbq.qimo.utils;

import java.util.Random;

public class GenerateCourseCode {
    static int length=6;
    public static String getCharAndNumr() {

        Random random = new Random();

        StringBuffer valSb = new StringBuffer();

        String charStr = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ";

        int charLength = charStr.length();
        for (int i = 0; i < length; i++) {

            int index = random.nextInt(charLength);

            valSb.append(charStr.charAt(index));

        }
        return valSb.toString();

    }
}
